/*
 * @Message authority 选项说明
 * 配置了 authority 项 则配置了权限
 * 权限匹配规则为包含关系
 * eg1: userAuthority == 1 authority = [1, 2, 3]
 * eg2: userAuthority == 'b' authority = ['a', 'b', 'c']
 * 不配置则皆有权限访问
 */

export default [
    {
        title: 'craco主页',
        icon: 'dashboard',
        children: [
            {
                title: 'dashboard',
                path: '/main/dashboard'
            },
            {
                title: 'queryform',
                path: '/main/queryform'
            },
            {
                authority: [1, 2],
                title: '数据预览',
                path: '/main/dataview'
            }
        ]
    },
    {
        authority: [1],
        title: '系统管理',
        icon: 'setting',
        children: [
            {
                authority: [1],
                title: 'manage',
                path: '/main/manage'
            }
        ]
    },
    {
        authority: [1, 2],
        title: '友情链接',
        icon: 'link',
        children: [
            {
                title: 'Ant Design',
                path: 'https://ant.design/index-cn',
                icon: ''
            },
            {
                title: '百度一下',
                path: 'https://www.baidu.com',
                icon: ''
            }
        ]
    },
    {
        title: '代码仓库',
        icon: 'code',
        path: 'https://gitee.com/xieyejiang/react-craco-admin'
    }
];
